//#define _CRT_SECURE_NO_WARNINGS
//
////#include<stdio.h>
////
////int main()
////{
////	FILE* fp = fopen("data.txt", "w");
////	if (NULL == fp)
////	{
////		perror("fopen");
////		return 1;
////	}
////
////	int num1 = 10;
////	int num2 = 10;
////	int num3 = 0;
////
////	char str1[10] = "abcdef";
////	char str2[10] = { 0 };
////
////	printf("num1 = %d\n", num1);
////
////	sprintf(str2, "%s", str1);
////	puts(str2);
////
////	fprintf(fp, "%d %s", num1, str1);
////
////	fclose(fp);
////	fp = NULL;
////
////	return 0;
////}
////int main()
////{
////	FILE* fp = fopen("data.txt", "r");
////	if (NULL == fp)
////	{
////		perror("fopen");
////		return 1;
////	}
////
////	int num1 = 0;
////	int num2 = 0;
////	int num3 = 0;
////
////	char str1[20] = "123 abcdef";
////	char str2[10] = { 0 };
////	char str3[10] = { 0 };
////
////	scanf("%d", &num1);
////
////	sscanf(str1, "%d%s", &num2, str2);
////
////	fscanf(fp, "%d%s", &num3, str3);
////
////	printf("num1 = %d, str1 = %s\n", num1, str1);
////	printf("num2 = %d, str2 = %s\n", num2, str2);
////	printf("num3 = %d, str3 = %s\n", num3, str3);
////
////	fclose(fp);
////	fp = NULL;
////
////	return 0;
////}
//
////int main()
////{
////	char str[] = "123 123";
////	char ch[10] = { 0 };
////
////	int num1 = 0;
////	int num2 = 0;
////
////	sscanf(str, "%d%s", &num1,ch);
////
////	printf("num1 = %d\n", num1);
////	puts(ch);
////
////	return 0;
////}
//
//#include<stdio.h>
//
////int main()
////{
////	FILE* fp = fopen("data.txt", "r+");
////	if (NULL == fp)
////	{
////		perror("fopen");
////		return 1;
////	}
////	
////	char a = 'a';
////	char str[30] = { 0 };
////	for (int i = 0; i < 26; i++)
////		fputc(a + i, fp);
////
////	fseek(fp, 3, SEEK_SET);
////
////	fprintf(fp, "%s", "DEF");
////
////	fseek(fp, 3, SEEK_SET);
////	fscanf(fp, "%s", str);
////	puts(str);
////	
////	fclose(fp);
////	fp = NULL;
////
////	return 0;
////}
////
////#include<stdio.h>
////
////int main()
////{
////	FILE* fp = fopen("data.txt", "w+");
////	if (NULL == fp)
////	{
////		perror("fopen");
////		return 1;
////	}
////	
////	char str[30] = { 0 };
////
////	for (int i = 0; i < 26; i++)
////		fputc('a' + i, fp);
////
////	rewind(fp);
////
////	for (int i = 0; i < 10; i++)
////		fputc('A' + i, fp);
////
////	rewind(fp);
////
////	fscanf(fp, "%s", str);
////	puts(str);
////	
////	fclose(fp);
////	fp = NULL;
////
////	return 0;
////}
//
//int main()
//{
//	//double x[5] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
//	//char c2[] = { '\x10', '\xa', '\8' };
//	//char c1[] = { '1','2','3','4','5' };
//	// int y[5 + 3] = { 0, 1, 3, 5, 7, 9 };
//
//	// printf("%c", c2[1]);
//
//	int b;
//	char c[10];
//
//	scanf("%d%s", &b, &c);
//
//	printf("%d%s", b, c);
//
//	 return 0;
//}
//
//#include <stdio.h>
//#include<stdbool.h>
//
//bool is_bigYear(int year)
//{
//    if ((year % 400 == 0) || (year % 4 == 0 && year % 100 != 0))
//        return true;
//    else
//        return false;;
//}
//
//int main() {
//    int year, mouth, day;
//    scanf("%d %d %d", &year, &mouth, &day);
//
//    int Days[2][12] = { 31,28,31,30,31,30,31,31,30,31,30,31,
//                       31,29,31,30,31,30,31,31,30,31,30,31, };
//
//    if (is_bigYear(year))
//    {
//        int sum = 0;
//        for (int i = 0; i < mouth - 1; i++)
//            sum += Days[1][i];
//        sum += day;
//        printf("%d", sum);
//    }
//    else
//    {
//        int sum = 0;
//        for (int i = 0; i < mouth - 1; i++)
//            sum += Days[0][i];
//        sum += day;
//        printf("%d", sum);
//    }
//
//    return 0;
//}

#include<math.h>

int* printNumbers(int n, int* returnSize) {
    int max = (int)pow(10, n) - 1;
    *returnSize = max;
    int* nums = (int*)malloc(sizeof(int) * max);
    for (int i = 0; i < max; i++)
        nums[i] = i + 1;

    return nums;
}